*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  block-size: 100%;
}

.page {
  font-family: "Fira Sans Condensed", sans-serif;
  background-color: #1b1919;
  font-size: 18px;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  inline-size: 1200px;
  block-size: 100%;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
blockquote,
fieldset {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

.visually-hidden {
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  inline-size: 1px;
  block-size: 1px;
  clip-path: inset(50%);
  white-space: nowrap;
}

.button {
  font-family: "Fira Sans Condensed", sans-serif;
  color: currentColor;
  font-weight: 700;
  font-size: 18px;
  line-height: 22px;
  align-self: end;
  text-align: center;
  border: 1px solid #fff;
  padding: 6px 0;
  background-color: transparent;
  cursor: pointer;
}

.button:hover {
  text-decoration: underline;
}

.button:focus {
  outline: none;
}

.button:active {
  background-color: #545050;
}

.content {
  display: flex;
  align-items: end;
  gap: 30px;
  inline-size: 1140px;
}

.result__video-container {
  position: relative;
  inline-size: 711px;
  block-size: 386px;
  margin-bottom: 16px;
}

.result__video {
  object-fit: cover;
  object-position: center;
  inline-size: 100%;
  block-size: 100%;
}

.search-form {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.search-form__fieldset {
  display: grid;
  border: none;
  gap: 5px;
}

.search-form__fieldset-title {
  font-family: "Fira Sans Condensed", sans-serif;
  font-size: 18px;
  line-height: 21.6px;
  font-weight: 400;
}

.search-form__label {
  display: flex;
  align-items: center;
  block-size: fit-content;
  padding: 1px 0 1px 1px;
  gap: 5px;
  cursor: pointer;
}

.search-form__label:has(.button) {
  align-self: end;
}

.search-form__label:hover .search-form__label-text {
  text-decoration: underline;
}

.search-form__textfield {
  font-size: 18px;
  line-height: 21.6px;
  color: #fff;
  font-family: inherit;
  border: 1px solid #fff;
  border-right: none;
  border-left: none;
  background-color: transparent;
  appearance: none;
  inline-size: 225px;
}

.search-form__textfield::placeholder {
  color: rgb(255, 255, 255 / 70);
}

.search-form__textfield:focus {
  outline: none;
}

.search-form__label:has(.search-form__textfield:focus-visible),
.search-form__label:has(.search-form__checkbox:focus-visible),
.search-form__label:has(.button:focus-visible) {
  outline: 1px solid #fff;
}

.search-form__submit-button:focus-visible {
  outline: 1px solid #fff;
  outline-offset: 1px
}

.search-form__checkbox-list {
  display: flex;
  justify-content: space-around;
  gap: 15px;
}

.search-form__pseudo-checkbox {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  block-size: 19px;
  inline-size: 19px;
  border: 1px solid #fff;
}

.search-form__pseudo-checkbox::after {
  content: "";
  display: flex;
  background-color: transparent;
  block-size: 15px;
  inline-size: 15px;
}

.search-form__checkbox:checked + .search-form__pseudo-checkbox::after {
  background-color: #fff;
}

.search-form__submit-button {
  inline-size: 194px;
}

.content__details {
  display: grid;
  inline-size: 100%;
  block-size: 100%;
  gap: 26px;
}

.title {
  font-size: 75px;
  line-height: 70.5px;
  text-transform: uppercase;
}

.title,
.content__video-card-title {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
}

.content__accent {
  color: #545050;
}

.content__list {
  position: relative;
  overflow: auto;
  scroll-behavior: smooth;
  scrollbar-width: auto;
  block-size: 298px;
  padding: 1px;
}

.content__list-item:not(:last-child) {
  margin-bottom: 30px;
}

.content__card-link {
  font-family: Fira Sans Condensed, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 16.2px;
  color: #fff;
  text-decoration: none;
  text-align: left;
  display: block;
  margin: 2px;
}

.content__card-link_current,
.content__card-link:active {
  background-color: #545050;
}

.content__card-link:hover .content__video-card {
  text-decoration: underline;
}

.content__card-link:focus {
  outline: none;
}

.content__card-link:focus-visible {
  outline: 1px solid #fff;
}

.content__video-card {
  display: flex;
  align-items: start;
  padding: 2px;
}

.content__video-card-description-container {
  display: grid;
  flex-grow: 1;
  gap: 6px;
}

.content__video-card-title {
  text-overflow: ellipsis; 
  white-space: nowrap; 
  overflow: hidden;
  font-size: 30px;
  line-height: 30px;
  text-align: left;
  text-transform: uppercase;
  max-width: 200px;
}

.content__video-card-description {
  font-family: "Fira Sans Condensed", sans-serif;
  max-width: 200px;
}

.content__video-card-thumbnail {
  object-fit: cover;
  object-position: center;
  inline-size: 194px;
  block-size: 103px;
  flex-shrink: 0;
}

.more-button {
  inline-size: 100%;
}

li:last-child:has(.more-button:focus-visible) {
  outline: 1px solid #fff;
  padding: 1px;
}
